#!/bin/sh                                                                                                                                                   

# -----------------------------------------------------------
# Twittero - Powerful Twitter client                         
# Amarok script for Twittero                                 
# -----------------------------------------------------------
# $author: Martin Salinas
# $license: BSD License - $depends: amarok - kde - dcop
# -----------------------------------------------------------

if [ $(dcop amarok player status &> /dev/null) -eq "2" ]; then
  PLAYING=$(dcop amarok player nowPlaying &> /dev/null)
  printf "%s " $PLAYING
else
  printf "noplaying"
fi

exit $?
